﻿using AutoMapper;
using BlogDemo.Core.Entities;
using BlogDemo.Infrastructure.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BlogDemo.Api.Infrastructure
{
    public class BlogProfile
        :Profile
    {
        public BlogProfile()
        {
            CreateMap<Post,PostDto>();
            CreateMap<PostDto, Post>();
        }
    }
}
